package com.guangfeng.yql.bean.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author yql
 * @since 2022-09-20
 */
@Getter
@Setter
@Accessors(chain = true)
/**
* user
*/
@TableName("yql_user")
@ApiModel(value = "UserPo对象", description = "用户表")
public class UserPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty("真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("用户邮箱")
    @TableField("user_mail")
    private String userMail;

    @ApiModelProperty("登录密码")
    @TableField("login_password")
    private String loginPassword;

    @ApiModelProperty("支付密码")
    @TableField("pay_password")
    private String payPassword;

    @ApiModelProperty("手机号码")
    @TableField("user_mobile")
    private String userMobile;

    @ApiModelProperty("注册时间")
    @TableField("user_regtime")
    private LocalDateTime userRegtime;

    @ApiModelProperty("注册IP")
    @TableField("user_regip")
    private String userRegip;

    @ApiModelProperty("最后登录时间")
    @TableField("user_lasttime")
    private LocalDateTime userLasttime;

    @ApiModelProperty("最后登录IP")
    @TableField("user_lastip")
    private String userLastip;

    @ApiModelProperty("备注")
    @TableField("user_memo")
    private String userMemo;

    @ApiModelProperty("M(男) or F(女)")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("例如：2009-11-27")
    @TableField("birth_date")
    private String birthDate;

    @ApiModelProperty("头像图片路径")
    @TableField("pic")
    private String pic;

    @ApiModelProperty("状态 1 正常 0 无效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("用户积分")
    @TableField("score")
    private Integer score;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("删除标志")
    @TableField("del_flag")
    @TableLogic
    private Long delFlag;


}
